API

Procurement APIs

POST procurement/quote-requests

Resource for creating new purchase quote requests. Note that only supplier is required.

HTTP method POST
URI https://api.rambase.net/procurement/quote-requests
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 2748, version 5

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<PurchaseQuoteRequest>
2
     <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

>
{String}</SuppliersReference>
3
     <Currency
Currency

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

>
{String}</Currency>
4
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

>
{String}</Note>
5
     <Validity
Validity

This field is optional.

>
6
          <ExpirationDate
ExpirationDate

Expiration date for responding to the purchase quote request.

This field is optional.

>
{Date}</ExpirationDate>
7
     </Validity>
8
     <Supplier>
9
          <SupplierId
SupplierId

Required/mandatory field

RamBase supplier identifier

Minimum value: 10000

>
{Integer}</SupplierId>
10
     </Supplier>
11
     <Shipment
Shipment

This field is optional.

>
12
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

>
{String}</DeliveryTerms>
13
          <DeliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

>
{String}</DeliveryTermPlace>
14
          <ShippingService
ShippingService

This field is optional.

>
15
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

This field is optional.

>
{Integer}</ShippingServiceId>
16
          </ShippingService>
17
     </Shipment>
18
</PurchaseQuoteRequest>
1
{
2
     "purchaseQuoteRequest": {
3
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

":
"{String}",
4
          "currency
Currency

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

":
"{String}",
5
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

":
"{String}",
6
          "validity
Validity

This field is optional.

":
{
7
               "expirationDate
ExpirationDate

Expiration date for responding to the purchase quote request.

This field is optional.

":
"{Date}"
8
          },
9
          "supplier": {
10
               "supplierId
SupplierId

Required/mandatory field

RamBase supplier identifier

Minimum value: 10000

":
"{Integer}"
11
          },
12
          "shipment
Shipment

This field is optional.

":
{
13
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

":
"{String}",
14
               "deliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

":
"{String}",
15
               "shippingService
ShippingService

This field is optional.

":
{
16
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

This field is optional.

":
"{Integer}"
17
               }
18
          }
19
     }
20
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<PurchaseQuoteRequest>
2
     <PurchaseQuoteRequestId
PurchaseQuoteRequestId

Purchase quote request identifier

>
{Integer}</PurchaseQuoteRequestId>
3
     <Status
Status

Status of purchase quote request

Possible domain values can be found here

>
{Integer}</Status>
4
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <RegistrationDate
RegistrationDate

Date of registration

>
{Date}</RegistrationDate>
6
     <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

>
{String}</SuppliersReference>
7
     <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
8
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

>
{String}</Note>
9
     <Assignee
Assignee

The user who has been assigned to work with this object.

>
10
          <UserId
UserId

User identifier

>
{Integer}</UserId>
11
          <Name
Name

Name of the user

>
{String}</Name>
12
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
13
          <UserLink
UserLink

User reference

>
{String}</UserLink>
14
     </Assignee>
15
     <Validity>
16
          <ExpirationDate
ExpirationDate

Expiration date for responding to the purchase quote request.

>
{Date}</ExpirationDate>
17
     </Validity>
18
     <Supplier>
19
          <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
20
          <Name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
21
          <Firstname
Firstname

Firstname/givenname if the supplier is a person

>
22
               <DefaultInvoiceAddress>
23
                    <Attention
Attention

Attention note.

>
{String}</Attention>
24
                    <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
25
                    <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
26
                    <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
27
                    <City
City

City/town/village

>
{String}</City>
28
                    <Region
Region

Region/province/state

>
{String}</Region>
29
                    <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
30
                    <Country
Country

English name of country.

>
{String}</Country>
31
               </DefaultInvoiceAddress>
32
          </Firstname>
33
          <SupplierLink
SupplierLink

Supplier reference

>
{String}</SupplierLink>
34
     </Supplier>
35
     <Totals>
36
          <Currency
Currency

Three character code following the ISO 4217 standard

>
{String}</Currency>
37
          <TotalAmount
TotalAmount

The total amount in object currency, including VAT

>
{Decimal}</TotalAmount>
38
          <Currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

>
{String}</Currency>
39
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

>
{Decimal}</ExchangeRate>
40
          <TotalAmount
TotalAmount

The total amount in company currency, including VAT.

>
{Decimal}</TotalAmount>
41
     </Totals>
42
     <Shipment>
43
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

>
{String}</DeliveryTerms>
44
          <DeliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

>
{String}</DeliveryTermPlace>
45
          <ShippingService>
46
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

>
{Integer}</ShippingServiceId>
47
               <Name
Name

Name of shipping service

>
{String}</Name>
48
               <Carrier>
49
                    <CarrierId
CarrierId

Carrier identifier

>
{Integer}</CarrierId>
50
                    <CarrierLink
CarrierLink

Carrier reference

>
{String}</CarrierLink>
51
               </Carrier>
52
               <ShippingServiceLink
ShippingServiceLink

Shipping service reference

>
{String}</ShippingServiceLink>
53
          </ShippingService>
54
          <NotificationId
NotificationId

Notification identifier

>
{Integer}</NotificationId>
55
          <Status
Status

Status of the notification

>
{Integer}</Status>
56
          <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
57
          <Message
Message

The message from the notification definition, expanded with parameters.

>
{String}</Message>
58
          <TranslatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

>
{String}</TranslatedMessage>
59
          <NotificationType>
60
               <NotificationTypeId
NotificationTypeId

Notification type identifier

>
{String}</NotificationTypeId>
61
               <Category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

>
{String}</Category>
62
               <NotificationTypeLink
NotificationTypeLink

Notification type reference

>
{String}</NotificationTypeLink>
63
          </NotificationType>
64
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
65
     </Shipment>
66
</PurchaseQuoteRequest>
1
{
2
     "purchaseQuoteRequest": {
3
          "purchaseQuoteRequestId
PurchaseQuoteRequestId

Purchase quote request identifier

":
"{Integer}",
4
          "status
Status

Status of purchase quote request

Possible domain values can be found here

":
"{Integer}",
5
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
6
          "registrationDate
RegistrationDate

Date of registration

":
"{Date}",
7
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

":
"{String}",
8
          "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
9
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

":
"{String}",
10
          "assignee
Assignee

The user who has been assigned to work with this object.

":
{
11
               "userId
UserId

User identifier

":
"{Integer}",
12
               "name
Name

Name of the user

":
"{String}",
13
               "firstName
FirstName

First name of the user

":
"{String}",
14
               "userLink
UserLink

User reference

":
"{String}"
15
          },
16
          "validity": {
17
               "expirationDate
ExpirationDate

Expiration date for responding to the purchase quote request.

":
"{Date}"
18
          },
19
          "supplier": {
20
               "supplierId
SupplierId

RamBase supplier identifier

":
"{Integer}",
21
               "name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
22
               "firstname
Firstname

Firstname/givenname if the supplier is a person

":
{
23
                    "defaultInvoiceAddress": {
24
                         "attention
Attention

Attention note.

":
"{String}",
25
                         "addressLine1
AddressLine1

First address line

":
"{String}",
26
                         "addressLine2
AddressLine2

Second address line

":
"{String}",
27
                         "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
28
                         "city
City

City/town/village

":
"{String}",
29
                         "region
Region

Region/province/state

":
"{String}",
30
                         "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
31
                         "country
Country

English name of country.

":
"{String}"
32
                    }
33
               },
34
               "supplierLink
SupplierLink

Supplier reference

":
"{String}"
35
          },
36
          "totals": {
37
               "currency
Currency

Three character code following the ISO 4217 standard

":
"{String}",
38
               "totalAmount
TotalAmount

The total amount in object currency, including VAT

":
"{Decimal}",
39
               "currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

":
"{String}",
40
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

":
"{Decimal}",
41
               "totalAmount
TotalAmount

The total amount in company currency, including VAT.

":
"{Decimal}"
42
          },
43
          "shipment": {
44
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

":
"{String}",
45
               "deliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

":
"{String}",
46
               "shippingService": {
47
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

":
"{Integer}",
48
                    "name
Name

Name of shipping service

":
"{String}",
49
                    "carrier": {
50
                         "carrierId
CarrierId

Carrier identifier

":
"{Integer}",
51
                         "carrierLink
CarrierLink

Carrier reference

":
"{String}"
52
                    },
53
                    "shippingServiceLink
ShippingServiceLink

Shipping service reference

":
"{String}"
54
               },
55
               "notificationId
NotificationId

Notification identifier

":
"{Integer}",
56
               "status
Status

Status of the notification

":
"{Integer}",
57
               "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
58
               "message
Message

The message from the notification definition, expanded with parameters.

":
"{String}",
59
               "translatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

":
"{String}",
60
               "notificationType": {
61
                    "notificationTypeId
NotificationTypeId

Notification type identifier

":
"{String}",
62
                    "category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

":
"{String}",
63
                    "notificationTypeLink
NotificationTypeLink

Notification type reference

":
"{String}"
64
               },
65
               "notificationLink
NotificationLink

Notification reference

":
"{String}"
66
          }
67
     }
68
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 104502 HTTP 400 General ledger items can only be updated when status less than 4
Error 100563 HTTP 400 Currency {0} is not supported by the system
Error 102746 HTTP 400 The parameter value can not be more than {0}
Error 102747 HTTP 400 Error in formula: {0}
Error 107762 HTTP 400 Only product structures can auto create work orders for sub production
Error 107763 HTTP 400 Only product structures can be set up for line production
Error 107764 HTTP 400 Only product structures can be externally manufactured
Error 101517 HTTP 400 Illegal Account {0}: This account require ICTDB.
Error 102482 HTTP 400 Department is required for general ledger account {0}
Error 102483 HTTP 400 Finance project is required for general ledger account {0}
Error 102484 HTTP 400 Asset is required for general ledger account {0}
Error 102485 HTTP 400 Dimension {0} ({1}) is required for general ledger account {2}
Error 101313 HTTP 400 Department number is not valid: {0}
Error 101320 HTTP 400 The project number is not valid: {0}
Error 101500 HTTP 400 Project {0} could not be used : Check project FromPeriod and ToPeriod.
Error 101501 HTTP 400 Asset is not allowed on general ledger account {0}
Error 101326 HTTP 400 The asset number is not valid : {0}
Error 102486 HTTP 400 Invalid value for dimension {0}